package com.designpatterns.strategy;

import com.designpatterns.strategy.user.DecoyDuck;
import com.designpatterns.strategy.user.MallardDuck;
import com.designpatterns.strategy.user.RubberDuck;

public class StrategyPatternTest {

	public static void main(String[] args) {
		
		// Mallard
		MallardDuck mallardDuck = new MallardDuck();
		mallardDuck.display();
		mallardDuck.performFly();
		mallardDuck.performQuack();
		
		// Rubber
		RubberDuck rubberDuck = new RubberDuck();
		rubberDuck.display();
		rubberDuck.performFly();
		rubberDuck.performQuack();
	
		// Decoy
		DecoyDuck decoyDuck = new DecoyDuck();
		decoyDuck.display();
		decoyDuck.performFly();
		decoyDuck.performQuack();
	}
}
